#include <stdio.h>

// struct Student
// {
//     char name[20];
//     int age;
//     int height;
// };

typedef struct Student
{
    char name[20];
    int age;
    int height;
} Student_t, *Student_p;

typedef int array[10];
// 新类型名array 类型为int[10]

int main()
{
    // typedef 用来声明一个新类型 typedef int size_t;
    int a = 10;
    typedef int zhengshu;
    zhengshu b = 20;

    for (size_t i = 0; i < 10; i++)
    {
        printf("%d\n", i);
    }

    // 定义结构体变量
    struct Student tom = {"Tom", 18, 90};
    struct Student *pTom = &tom;

    // Student_t struct Student这个类型的别名
    Student_t jack = {"Jack", 19, 100};
    Student_t *pJack = &jack;
    Student_p p = &jack;
}